<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php

/**
 * PENGUIN
 * Default layout
 * 
 * @package PENGUIN
 * @subpackage Layout
 * @author hungtd <hungtd@vng.com.vn>
 * @copyright VNG
 * @version 1.0.0
 */
?>

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><?=$MainTitle;?></title>
        <meta name="keywords" content="<?=$MainKeyword;?>" />
        <meta name="description" content="<?=$MainDescription;?>" />
        
        <link href="<?=base_url();?>static/<?=config_item('penguin_theme');?>/css/style.css" rel="stylesheet" type="text/css" media="screen" />
        <script type="text/javascript" src="<?=base_url();?>static/<?=config_item('penguin_theme');?>/js/jquery-1.6.4.js"></script>
        <script type="text/javascript" src="<?=base_url();?>static/<?=config_item('penguin_theme');?>/js/jquery.livequery.js"></script>
    </head>
    
    <body>
        <div id="MainWeb">
            <div id="logo">
                <h1><a href="#"><?=config_item('penguin_site_name');?></a></h1>
                <p><em><?=config_item('penguin_site_description');?></em></p>
            </div>
            <hr />
            <!-- end #logo -->
            
            <div id="MainHeader">
                <div id="menu">
                    <ul>
                        <li><?=anchor('users/', 'Home');?></li>
                        <li>
                            <?php
                                if ($this->session->userdata('user_id')) {
                                    echo anchor('users/admin_users/dashboard', $this->session->userdata('user_username'));
                                } else {
                                    echo anchor('users/login', 'Login');
                                }
                            ?>
                        </li>
                    </ul>
                </div>
                <!-- end #menu -->
                <div id="search">
                    <form method="get" action="">
                        <fieldset>
                            <input type="text" name="s" id="search-text" size="15" />
                            <input type="submit" id="search-submit" value="GO" />
                        </fieldset>
                    </form>
                </div>
                <!-- end #search -->
            </div>
            <!-- end #header -->
            <!-- end #header-wrapper -->
            
            <div id="MainWapper">
                <?=$MainContent;?>
                <div style="clear: both;">&nbsp;</div>
            </div>
            <!-- end #page -->
            <div id="MainFooter">
                <p>Copyright (c) 2010 <?=config_item('penguin_site');?>. All rights reserved. Design by <a href="<?=config_item('penguin_site');?>"><?=config_item('penguin_site_name');?></a>.</p>
                <p>{elapsed_time}</p>
            </div>
            <!-- end #footer -->
        </div>
    </body>
</html>